<?php
class pm_m extends m {
  function __construct()
  {
    parent::__construct();
    $this->table = 'pm';
    $this->fields = array('uid','key','input_time','content','from');
  }
  
  function send($from,$to,$content)
  {    
    $result = $this->db->query(" select id from pm_thead where uid='$from' and tid='$to'");
    if($result[0]['id']){
      
      
    }
    else {
      $this->db->query(" insert into pm_thead(`uid`,`tid`) values('$from','$to')");
    }
  }
}
